﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint"  %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"  %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Corres_RegisterUserControl.ascx.cs"
    Inherits="TRIG_MOD_CORRES.wsp.Corres_Register.Corres_RegisterUserControl"  %>
<link rel="Stylesheet" type="text/Css" href="/projects/25/_layouts/TRIG_MOD_CORRES.wsp/tce.css" />

<script type='text/javascript'>
    _spOriginalFormAction = document.forms[0].action;
    _spSuppressFormOnSubmitWrapper = true;   
</script>  


<script src="/projects/25/_layouts/Scripts/ValidationScript.js" type="text/javascript"
    language="javascript"></script>

<asp:UpdatePanel ID="upt" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    From Date
                </td>
                <td>
                    <SharePoint:DateTimeControl ID="frmDt" runat="server" DateOnly="true" LocaleId="2057"
                        IsRequiredField="true" />
                </td>
            </tr>
            <tr>
                <td>
                    To Date
                </td>
                <td>
                    <SharePoint:DateTimeControl ID="toDt" runat="server" DateOnly="true" LocaleId="2057"
                        IsRequiredField="true" />
                </td>
            </tr>
            <asp:Label ID="errorMsg" runat="server"></asp:Label>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="uptRecSent" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td align="center">
                    <asp:RadioButtonList ID="sent_receive" runat="server" RepeatDirection="Horizontal"
                        OnSelectedIndexChanged="sent_receive_SelectedIndexChanged">
                        <asp:ListItem Text="Received From" Value="0" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="Sent To" Value="1"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td align="center">
                    Company
                    <asp:DropDownList ID="ddlCompany" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCompany_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Subject
                    <asp:TextBox ID="txtSubject" runat="server" Text=""></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Button ID="btnSummary" runat="server" Text="Get Summary" OnClick="btnSummary_Click" />
                </td>
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="sent_receive" />
    </Triggers>
</asp:UpdatePanel>

<asp:UpdatePanel ID="uptGv" runat="server">
    <ContentTemplate>
        <asp:GridView ID="gvCorres" runat="server" AutoGenerateColumns="true" AlternatingRowStyle-CssClass="alt"
            CommandRowStyle-CssClass="ftr" CssClass="grid" EditRowStyle-CssClass="EditRowStyle"
            EnableModelValidation="True" FieldHeaderStyle-CssClass="hdr" GridLines="None"
            PagerStyle-CssClass="pgr" PageSize="10" RowStyle-CssClass="mGridRowStyle" SelectedRowStyle-CssClass="SelectedRowStyle"
            OnRowDataBound="gvCorres_RowDataBound" 
            onselectedindexchanging="gvCorres_SelectedIndexChanging">
        </asp:GridView>
    </ContentTemplate>
   <%-- <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnSummary" />
    </Triggers>--%>
</asp:UpdatePanel>

<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
       <asp:Button runat="server" ID="btnExport" Text="Export To Excel" Visible="false" />
    </ContentTemplate>
</asp:UpdatePanel>